﻿using System;
using System.Collections.Generic;

namespace EventYard.Models
{
    public class User
    {
        public int Id { get; set; }
        public string Username { get; set; }
        public string AuthCode { get; set; }
        public string SessionKey { get; set; }
        public string Mail { get; set; }
        public string Phone { get; set; }
        public string Picture { get; set; }

        public virtual ICollection<User> Friends { get; set; }
        public virtual ICollection<Event> Events { get; set; }

        public User()
        {
            this.Friends = new HashSet<User>();
            this.Events = new HashSet<Event>();
        }
    }
}
